package com.zby.common.minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * @author wuyanzhu
 */
@Data
@ConfigurationProperties(prefix = "minio")
public class MinioPojo {
    private String endpoint;
    private String accessKey;
    private String secretKey;
    private Map<String, BucketConfig> buckets;

    @Data
    public static class BucketConfig {
        private String bucketName;
    }
}
